/**   
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-03-17 14:00:30  
 * Copyright (c) 2015- -版权所有     
 */

package com.joysuch.wwyt.edu.repository;

import java.util.List;

import com.joysuch.wwyt.edu.entity.EduTrainningRecordImage;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;

/**
 * EduTrainningRecordImageDao
 *
 */
public interface EduTrainningRecordImageDao
        extends JpaRepository<EduTrainningRecordImage, Long>, QuerydslPredicateExecutor<EduTrainningRecordImage> {
    public Page<EduTrainningRecordImage> findAll(Specification<EduTrainningRecordImage> spec, Pageable pageable);

    public EduTrainningRecordImage save(EduTrainningRecordImage bean);

    public void delete(EduTrainningRecordImage bean);

    public int deleteByTrainningRecordId(Long id);

    public List<EduTrainningRecordImage> findByTrainningRecordId(Long id);
}
